<!DOCTYPE html>
<html lang="en">
    <include file="Public/head" />
<body data-type="widgets">
    <script src="__PUBLIC__/assets/js/theme.js"></script>
    <div class="am-g tpl-g">
        <!-- 头部 -->
    <include file="Public/header" />
        <!-- 风格切换 -->
        <div class="tpl-skiner">
            <div class="tpl-skiner-toggle am-icon-cog">
            </div>
            <div class="tpl-skiner-content">
                <div class="tpl-skiner-content-title">
                    选择主题
                </div>
                <div class="tpl-skiner-content-bar">
                    <span class="skiner-color skiner-white" data-color="theme-white"></span>
                    <span class="skiner-color skiner-black" data-color="theme-black"></span>
                </div>
            </div>
        </div>
        
<include file="Public/left" />
        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">

            <div class="row-content am-cf">
                <div class="row">

                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl"><h1 style="display:inline">管理教练</h1><a href="addcoach.html">添加教练</a></div>
                            </div>
                            <div class="widget-body  widget-body-lg am-fr">

                                    <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
                                        <thead>
                                            <tr>
                                                <th>序号</th>
                                                <th>教练名</th>
                                                <th>简介</th>
                                                <th>联系电话</th>
                                                <th>执教项目</th>
                                                <th>所属俱乐部</th>
                                                <th>教练照片图</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <volist name="coach" id="vo">
                                            <if condition="$vo.grade eq 0">
                                            <tr class="gradeX">
                                                <td class="am-text-middle">{$i}</td>
                                                <td class="am-text-middle">{$vo.coachname}</td>
                                                <td class="am-text-middle">{$vo.introduction}</td>
                                                <td class="am-text-middle">{$vo.phone}</td>
                                                <td class="am-text-middle">{$vo.course}</td>
                                                <td class="am-text-middle">{$vo.clubname}</td>
                                                <td>
                                                    <img src="__PUBLIC__/photo/{$vo.pic}" class="tpl-table-line-img" alt="" width="50" height="50">
                                                </td>
                                                <td class="am-text-middle">
                                                    <div class="tpl-table-black-operation">
                                                        <a href="{:U('Club/coach/delete',array('coachid'=>$vo['coachid']))}" class="tpl-table-black-operation-del">
                                                            <i class="am-icon-trash"></i> 删除
                                                        </a>
                                                        <a href="{:U('Club/coach/applymaster',array('coachid'=>$vo['coachid']))}">
                                                            <i class="am-icon-pencil"></i> 申请大师
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>
                                            <else />
                                            <tr class="gradeX">
                                                <td class="am-text-middle">{$i}</td>
                                                <td class="am-text-middle">{$vo.coachname}</td>
                                                <td class="am-text-middle">{$vo.introduction}</td>
                                                <td class="am-text-middle">{$vo.phone}</td>
                                                <td class="am-text-middle">{$vo.course}</td>
                                                <td class="am-text-middle">{$vo.clubname}</td>
                                                <td>
                                                    <img src="__PUBLIC__/photo/{$vo.pic}" class="tpl-table-line-img" alt="" width="50" height="50">
                                                </td>
                                                <td class="am-text-middle">
                                                    <div class="tpl-table-black-operation">
                                                        <a href="{:U('Club/coach/delete',array('coachid'=>$vo['coachid']))}" class="tpl-table-black-operation-del">
                                                            <i class="am-icon-trash"></i> 删除
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>
                                            </if>
                                            </volist>
                                        </tbody>
                                    </table>

                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
    </div>

    <include file="Public/bottom" />
</body>

</html>  